package cn.pping.basic.utils;

import lombok.Data;

@Data
public class AjaxResult {
    public  Boolean success = true;
    public  String  message ="操作成功";
/*
* @Title:
* @Description: 获取Ajax的方法
* @Author: Pan
* @Version: 1.0
* @Date:  2022/6/24 11:54
* @Parameters:
* @Return
*/
    public static AjaxResult getMe(){
        return new AjaxResult();
    }

    public  AjaxResult setSuccess(Boolean success){
       this.success = success;
       return  this;
    }
    public  AjaxResult setMessage(String  message){
        this.message = message;
        return  this;
    }
}
